//
//  RCMapAnnotation.h
//  ReCite
//
//  Created by Miles on 10-05-14.
//  Copyright 2010 Miles Thorogood
//  greenmeat.net. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <MapKit/MapKit.h>

typedef struct {
	NSURL *audioUrl, *imageUrl, *textUrl;
	NSString *ad_identifier, *type ;
	CLLocation *location ;
} adAttributes ;

@interface RCMapAnnotation : NSObject <MKAnnotation> {
	
	adAttributes thisAd ;
	
	CLLocationCoordinate2D coordinate;
	NSString *title, *subtitle;
	NSUInteger pinID;
	
	NSString *text ;
	UIImage *image ;
	AVAudioPlayer *player;
	NSMutableDictionary *dataDictionary ;
}

@property (nonatomic, retain) NSString *title, *subtitle, *text ;
@property (nonatomic, retain) UIImage *image ;
@property (nonatomic, retain) AVAudioPlayer *player;
@property (nonatomic, retain) NSMutableDictionary *dataDictionary ;
@property (readwrite) adAttributes thisAd ;

-(id) initWithDictionary:(NSMutableDictionary *) dictionary ;

@end
